package org.jeecg.modules.power.device.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 设备表（初稿）
 * @Author: jeecg-boot
 * @Date:  2024-07-16
 * @Version: V1.0
 */
@Data
@TableName("yl_device")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="yl_device对象", description="设备表（初稿）")
public class YlDevice implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**设备名称*/
	@Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
    private java.lang.String deviceName;
	/**设备类型1柜机2充电宝*/
	@Excel(name = "设备分类", width = 15)
    @ApiModelProperty(value = "设备分类")
    private java.lang.String deviceType;
	/**设备类型*/
	@Excel(name = "设备类型", width = 15)
    @ApiModelProperty(value = "设备类型")
    @Dict(dictTable = "yl_device_category",dicCode = "id",dicText = "category_name")
    private java.lang.String deviceCategory;
	/**设备二维码ID*/
	@Excel(name = "设备二维码ID", width = 15)
    @ApiModelProperty(value = "设备二维码ID")
    private java.lang.String deviceQrcodeId;
	/**设备mac*/
	@Excel(name = "设备mac", width = 15)
    @ApiModelProperty(value = "设备mac")
    private java.lang.String deviceMac;
	/**设备sn*/
	@Excel(name = "设备sn", width = 15)
    @ApiModelProperty(value = "设备sn")
    private java.lang.String deviceSn;
	/**设备版本*/
	@Excel(name = "设备版本", width = 15)
    @ApiModelProperty(value = "设备版本")
    private java.lang.String deviceVersion;
	/**设备型号*/
	@Excel(name = "设备型号", width = 15)
    @ApiModelProperty(value = "设备型号")
    private java.lang.String deviceModel;
	/**ICCID*/
	@Excel(name = "ICCID", width = 15)
    @ApiModelProperty(value = "ICCID")
    private java.lang.String iccId;
	/**设备状态1仓库2BD3门店9其他*/
	@Excel(name = "设备状态", width = 15)
    @ApiModelProperty(value = "设备状态")
    private java.lang.Integer deviceStatus;
	/**设备锁定状态1未锁定2已锁定（设备处于审核过程中禁止再次提交申请）*/
	@Excel(name = "设备锁定状态", width = 15)
    @ApiModelProperty(value = "设备锁定状态")
    private java.lang.String deviceLock;
	/**设备在线状态1在线2离线*/
	@Excel(name = "设备在线状态", width = 15)
    @ApiModelProperty(value = "设备在线状态")
    private java.lang.Integer onlineStatus;
	/**设备绑定状态0未绑定1已绑定*/
	@Excel(name = "设备绑定状态", width = 15)
    @ApiModelProperty(value = "设备绑定状态")
    private java.lang.Integer isBind;
	/**有无故障1正常2故障*/
	@Excel(name = "有无故障", width = 15)
    @ApiModelProperty(value = "有无故障")
    private java.lang.Integer isFault;
	/**业务ID（根据状态是仓库BD门店）*/
    @ApiModelProperty(value = "业务ID")
    private java.lang.String businessId;
	/**备注信息*/
    @ApiModelProperty(value = "备注信息")
    private java.lang.String deviceRemark;
	/**设备二维码地址*/
    @ApiModelProperty(value = "设备二维码地址")
    private java.lang.String qrcodeUrl;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;

    /**库龄（从第一次入库算起，单位：秒，根据需求自行转换）*/
    @TableField(exist = false)
    private Long times;
    /**设备分类名称*/
    @TableField(exist = false)
    private String categoryName;
    /**设备仓库名称*/
    @TableField(exist = false)
    private String houseName;
    /**设备门店名称*/
    @TableField(exist = false)
    private String shopName;
    /**位置（ 小组 | BD | 电话）*/
    @TableField(exist = false)
    private String location;
    /**bdId*/
    @TableField(exist = false)
    private String bdId;

    /**调拨位置*/
    @TableField(exist = false)
    private String label;
    /**调拨业务ID*/
    @TableField(exist = false)
    private String key;
    /**调拨对象 1仓库2BD*/
    @TableField(exist = false)
    private Integer type;

}
